package com.qidianit.mes.pro.controller;

import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.WorkflowProduct;
import com.qidianit.mes.pro.pojo.MESPage;
import com.qidianit.mes.pro.service.WorkflowProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Description:
 * @ Author: 戴着假发的程序员
 * @ Date: 2025/9/22 - 16:35
 */
@RestController
@RequestMapping("/workflowProduct")
public class WorkflowProductController {
    @Autowired
    private WorkflowProductService workflowProductService;

    @GetMapping("/page")
    public Result<MESPage<WorkflowProduct>> list(WorkflowProduct workflowProduct, @RequestParam(defaultValue = "1")int page,@RequestParam(defaultValue = "10")int size){
        return workflowProductService.selectList(workflowProduct.getWorkflowId(),page,size);
    };
}
